﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Xml.Serialization;

namespace IDT.Entity
{
    public class Photo
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [Column(Order = 0)]
        public Guid PhoteKey { get; set; }

        [Column(Order = 1)]
        public Guid AlbumKey { get; set; }

        [Column(Order = 2)]
        public int AlbumId { get; set; }

        [Column(Order = 3)]
        public int PhotoId { get; set; }

        [Column(Order = 4)]
        public string Name { get; set; }

        [Column(Order = 5)]
        public string Url { get; set; }

        [XmlIgnore]
        public Album Album { get; set; }
    }
}